package com.steerinfo.dil.interceptors;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.i18n.LocaleChangeInterceptor;

/**
 * @Author zhangnan
 * @Date 2021/4/23 8:19
 * @Version 1.0
 */

@Configuration
public class MyLocaleChangeInterceptor {

    //国际化配置
    @Bean
    public LocaleChangeInterceptor localeChangeInterceptor(){
        return new LocaleChangeInterceptor();
    }

}
